﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
	xmlns:CoreSharp_Keyboard="clr-namespace:CoreSharp.Keyboard"
	mc:Ignorable="d"
	x:Class="CoreSharp.ThaiTextBox.ThaiTextboxSetting"
	d:DesignWidth="414" d:DesignHeight="598">

	<UserControl.Resources>
		<toolkit:OffOnConverter x:Key="OffOnConverter"/>
	</UserControl.Resources>

	<UserControl.DataContext>
		<CoreSharp_Keyboard:GlobalThaiTextBoxSettings/>
	</UserControl.DataContext>

	<StackPanel>
		<toolkit:ToggleSwitch x:Name="KeySoundOption" Header="typing sound" Content="{Binding IsChecked, Converter={StaticResource OffOnConverter}, ElementName=KeySoundOption}" IsChecked="{Binding GlobalSetting.PlayValidKeySound, Mode=TwoWay}"/>
		<toolkit:ToggleSwitch x:Name="KeySoundOption2" Header="invalid key pressed sound" Content="{Binding IsChecked, Converter={StaticResource OffOnConverter}, ElementName=KeySoundOption2}" IsChecked="{Binding GlobalSetting.PlayInvalidKeySound, Mode=TwoWay}"/>
		<toolkit:ToggleSwitch x:Name="HapticFeedbackOption" Header="typing haptic feedback" Content="{Binding IsChecked, Converter={StaticResource OffOnConverter}, ElementName=HapticFeedbackOption}" IsChecked="{Binding GlobalSetting.VibrateOnValidKey, Mode=TwoWay}"/>
		<toolkit:ToggleSwitch x:Name="HapticFeedbackOption2" Header="invalid key haptic fedback" Content="{Binding IsChecked, Converter={StaticResource OffOnConverter}, ElementName=HapticFeedbackOption2}" IsChecked="{Binding GlobalSetting.VibrateOnInvalidKey, Mode=TwoWay}"/>
	</StackPanel>
</UserControl>